home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr27 / cal33.zip / CAL.DAT < prev    next >
Text File  |  1995-01-15  |  3KB  |  80 lines

  1. This is a sample data file for the CAL program.  When CAL uses the
  2. single-month calendar format, it will display up to eight 'special' dates
  3. for that month to the right of the calendar.  If the current date happens
  4. to fall on one of these special dates, it will be flagged by an asterisk.
  5. The special date descriptions are specified in this file (cal.dat) as
  6. single lines, formatted as follows:
  7.  
  8. YYYY MM DD NW xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  9.  
  10. YYYY is the year,
  11. MM is the month (01 - 12),
  12. DD is the day (00 if the NW field is used),
  13. NW is the weekday-of-month code (00 if the DD field is used)
  14. xxxx... is the message, if longer than 50 characters it will be truncated.
  15.  
  16. The data MUST occupy the character fields as shown.  If YYYY is specified
  17. as -999, the month and day are assumed to be annual events such as holidays,
  18. and the description will be displayed for any year.  If MM is specified
  19. as -9, the day is assumed to be a monthly event for that year.  If DD is
  20. specified as -9, the description will be displayed every day, *provided*
  21. that the YYYY and MM fields can match the current month and year.
  22.  
  23. In the weekday-of-month code NW, N signifies on which weekday W the special
  24. date occurs.  For example, 31 indicates the third sunday.  Values of W
  25. range from 1 to 7, for Sunday to Saturday, respectively.  A value of 9 for
  26. N indicates "last" as in 95 for "last thursday."  A negative value will
  27. indicate EACH day; for example -2 indicates "each monday."
  28.  
  29. You can display birthdays and anniversaries by putting the year of birth
  30. (or other special event) inside brackets or braces, in the description.
  31. This number is converted to the number of years since the year you indicate.
  32. If brackets [] are used, they will be displayed around this number.  If
  33. braces {} are used, they will not be displayed, but the number will have
  34. an ordinal suffix, as in 21st, 32nd, 43rd, 54th, etc.  If the number in
  35. brackets or braces is greater than the current year, the number will be
  36. displayed unchanged (and braces WILL be displayed).  Example:
  37. "Alex's {1961} birthday" will display as "Alex's 32nd birthday" (if the
  38. current year is 1993).
  39.  
  40. NOTE:  If cal is invoked with the --europe switch, the W values from 1-7 
  41. denote Monday(1) to Sunday(7), rather than Sunday(1) to Saturday(7).
  42.  
  43. A line must start with -999 or a 4-digit number to be considered as data.
  44. Dates may be in any order, in any amount.
  45.  
  46. Annual days:
  47.  
  48. YYYY MM DD NW Description
  49.  
  50. -999 01 01 00 New Year's Day
  51. -999 01 00 32 Martin Luther King Day
  52. -999 02 14 00 St. Valentine's Day
  53. -999 03 17 00 St. Patrick's Day
  54. -999 04 01 00 All Fool's Day
  55. -999 05 00 21 Mother's Day
  56. -999 05 00 92 Memorial Day
  57. -999 06 00 31 Father's Day
  58. -999 07 04 00 Independence Day
  59. -999 09 00 12 Labor Day
  60. -999 10 31 00 Halloween
  61. -999 11 00 95 Thanksgiving Day
  62.  
  63. Monthly days:
  64.  
  65. x-999 -9 00 26 JACO Japanese Animation movie showings, 8 pm to midnight
  66. x-999 -9 00 46 JACO showings
  67.  
  68. Weekly days:
  69.  
  70. -999 -9 00 -3 Take out the garbage
  71.  
  72. Daily days:
  73.  
  74. -999 -9 -9 00 Daily reminder: Get some exercise!
  75.  
  76. Other days:
  77.  
  78. 1992 11 03 00 Election Day
  79. 1994 11 08 00 Election Day
  80.